/*----------------------------------------------------------------------------------------
*
*  Copyright 2019, Gao Hai Hui, <fromzeropoint@126.com>.  All rights reserved.
*  https://gitee.com/helloworldghh/xoskit.git
*  Use of this source code is governed by a MIT license
*  that can be found in the License file.
*
----------------------------------------------------------------------------------------*/
#ifndef __XOS_BOX_PROPERTY_INT_PROPERTY_H__
#define __XOS_BOX_PROPERTY_INT_PROPERTY_H__

#include "../tools/head.h"
#include "property_template.h"

//////////////////////////////////////////////////////////////////////////////////////////////////
// 

namespace xos_box
{

    class int_property_impl : public xos_stl::mem_item< xos::release_impl< int_property_impl >, thread_lock >,
        public property_template<i_int_property, int, int>
    {
    public:
        typedef property_template<i_int_property, int, int> BASE;
        typedef xos::release_impl< int_property_impl > T;

    public:
        /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        //
        static int get_xos_item_data( ITEM_DATA *& item_ptr );

    public:
        int_property_impl();
        ~int_property_impl();

    public:
        i_variant * next( int * pnId );

    protected:
        int init_data();

    public:
        int init();
        int term();

    };

} // xos_box

#endif // __XOS_BOX_PROPERTY_INT_PROPERTY_H__
